
import java.util.*;
public class Player
{
    public int strength =100;
    private Map<String, Thing>bag= new HashMap<>();
    public void move(){
        strength -= 10;
    }
    public void use (String thingName){
        Thing thing = bag.get(thingName);
        if(thing !=null) {
            strength +=thing.getEnergy();
            System.out.println("你现在的体力： " + strength + " 。");
            bag.remove(thingName);
            if(strength >100) {
                strength = 100;
            }
            } 
    }
   public void pick (Thing thing) {
    bag.put(thing.getName(),thing);
      }
   public void look (Thing thing) {
    thing .getName();
     }
   public void check (Thing thing) {
    thing.getName(); 
    }
   public int strength()
   {
    return this.strength;
    }
}
